﻿ using System;

namespace csharpbiancheng
{
    class Program
    {
        public delegate void MyDelegate();
        static void Main(string[] args)
        {
            MyDelegate myDelegate = new MyDelegate(Test.SayHello);
            myDelegate();
        }
    }

    class Test
    {
        public static void SayHello()
        {
            Console.WriteLine("Hello Delegate!");
        }
    }
}
